]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Add "Keyboard Settings" menu entry
authorsunflowerskater <sunflowerskater@tutanota.com>
Thu, 12 Jan 2023 01:38:07 +0000 (22:38 -0300)
committersunflowerskater <81470-sunflowerskater@users.noreply.gitlab.gnome.org>
Fri, 13 Jan 2023 16:05:25 +0000 (16:05 +0000)
The keyboard popover doesn't have a shortcut to open the Keyboard panel from the Settings app.

This commit adds this menu entry to improve usability.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2600>

js/ui/status/keyboard.js

index b47375d6442ee03930381dfdb0723221e691c279..fff4e73c2947ab7224153b8749433d7e7b0578d1 100644 (file)
@@ -857,6 +857,8 @@ class InputSourceIndicator extends PanelMenu.Button {
 
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
         this._showLayoutItem = this.menu.addAction(_("Show Keyboard Layout"), this._showLayout.bind(this));
+        this.menu.addSettingsAction(_('Keyboard Settings'),
+            'gnome-keyboard-panel.desktop');
 
         Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
         this._sessionUpdated();